package com.example.demo.proxy.staticDemo;

/**
 * @author xin.you
 * @date 2022/2/6
 * @description
 */
public class TeacherDaoProxy implements ITeacherDao{
    private TeacherDao teacherDao;

    public TeacherDaoProxy(TeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {
        System.out.println("代理对象开始。。。。");
        teacherDao.teach();
        System.out.println("代理对象结束。。。。");
    }
}
